package com.fastwire.carriere.common.constant;

import java.util.HashMap;


/**
 * The Class AppConstants.
 */
public class AppConstants {

	/** The Constant path. */
	public static final String path = "/";

	/** The Constant TP_DISCOVERY_TEMPLATE. */
	public static final String TP_DISCOVERY_TEMPLATE = path
			+ "getAllPhysicalTP.xml";

	/** The Constant TUNNEL_DISCOVERY_TEMPLATE. */
	public static final String TUNNEL_DISCOVERY_TEMPLATE = path
			+ "getAllTunnels.xml";

	/** The Constant PROTECTION_DISCOVERY_TEMPLATE. */
	public static final String PROTECTION_DISCOVERY_TEMPLATE = path
			+ "getAllProtections.xml";

	/** The Constant FDFR_DISCOVERY_TEMPLATE. */
	public static final String FDFR_DISCOVERY_TEMPLATE = path
			+ "getAllFDFr.xml";

	/** The Constant EQUIPMENT_DISCOVERY_TEMPLATE. */
	public static final String EQUIPMENT_DISCOVERY_TEMPLATE = path
			+ "getAllEquipments.xml";

	/** The Constant TL_DISCOVERY_TEMPLATE. */
	public static final String TL_DISCOVERY_TEMPLATE = path + "getAllTLs.xml";

	/** The Constant MODIFY_TUNNEL_TEMPLATE. */
	public static final String MODIFY_TUNNEL_TEMPLATE = path + "ModifyCC.xml";

	/** The Constant ME_NRF. */
	public static final String ME_NRF = "ManagedElementRetrieval";

	/** The Constant TP_NRF. */
	public static final String TP_NRF = "TerminationPointRetrieval";

	/** The Constant TUNNEL_NRF. */
	public static final String TUNNEL_NRF = "ConnectionRetrieval";

	/** The Constant FDFR_NRF. */
	public static final String FDFR_NRF = "FlowDomainRetrieval";

	/** The Constant EQUIPMENT_NRF. */
	public static final String EQUIPMENT_NRF = "EquipmentInventoryRetrieval";

	/** The Constant PROTECTION_NRF. */
	public static final String PROTECTION_NRF = "ProtectionRetrieval";

	/** The Constant TL_NRF. */
	public static final String TL_NRF = "TopologicalLinkRetrieval";

	/** The Constant TCP_NRF. */
	public static final String TCP_NRF = "TrafficConditioningProfileRetrieval";

	/** The Constant TUNNEL_CONTROL. */
	public static final String TUNNEL_CONTROL = "ConnectionControl";

	/** The Constant FDFR_CONTROL. */
	public static final String FDFR_CONTROL = "FlowDomainControl";

	/** The Constant PTP. */
	public static final String PTP = "PTP";

	/** The Constant CTP. */
	public static final String CTP = "CTP";

	/** The Constant FTP. */
	public static final String FTP = "FTP";

	/** The Constant TUNNEL_NRP. */
	public static final String TUNNEL_NRP = "ConnectionControl";

	/** The Constant templateURLMap. */
	public static final HashMap<String, String> templateURLMap = new HashMap<String, String>();

	static {
		templateURLMap.put(TP_DISCOVERY_TEMPLATE, TP_NRF);
		templateURLMap.put(TUNNEL_DISCOVERY_TEMPLATE, TUNNEL_NRF);
		templateURLMap.put(FDFR_DISCOVERY_TEMPLATE, FDFR_NRF);
		templateURLMap.put(EQUIPMENT_DISCOVERY_TEMPLATE, EQUIPMENT_NRF);
		templateURLMap.put(PROTECTION_DISCOVERY_TEMPLATE, PROTECTION_NRF);
		templateURLMap.put(MODIFY_TUNNEL_TEMPLATE, TUNNEL_NRP);
		templateURLMap.put(TL_DISCOVERY_TEMPLATE, TL_NRF);
	}

	/** The Constant TOPO_ELEMENT. */
	public static final String TOPO_ELEMENT = "TopologyXML";

	/** The Constant CONNECTIVITY_ELEMENT. */
	public static final String CONNECTIVITY_ELEMENT = "connectivity";

	/** The Constant DATA_ELEMENT. */
	public static final String DATA_ELEMENT = "data";

	/** The Constant ITEM_ELEMENT. */
	public static final String ITEM_ELEMENT = "item";

	/** The Constant NETWORKENTITY_ELEMENT. */
	public static final String NETWORKENTITY_ELEMENT = "networkentity";

	/** The Constant EMSNATIVENAME_ELEMENT. */
	public static final String EMSNATIVENAME_ELEMENT = "emsnativename";

	/** The Constant DISCOVERY_FILE_PATH. */
	public static final String DISCOVERY_FILE_PATH = "discoveryFiles/";

	/** The Constant TPLAYERRATE_LR_MPLS_CHANNEL. */
	public static final String TPLAYERRATE_LR_MPLS_CHANNEL = "LR_MPLS_Channel";

	/** The Constant PORTCAPACITYMAP. */
	public static final HashMap<String, String> PORTCAPACITYMAP = new HashMap<String, String>();

	static {
		PORTCAPACITYMAP.put("12LDX", "10000000");
		PORTCAPACITYMAP.put("82EG16", "1000000");
		PORTCAPACITYMAP.put("82EX2", "10000000");
		PORTCAPACITYMAP.put("AUXQ", "100000");
		PORTCAPACITYMAP.put("EF8F", "100000");
		PORTCAPACITYMAP.put("EF8T", "100000");
		PORTCAPACITYMAP.put("EFG2", "1000000");
		PORTCAPACITYMAP.put("EG16", "1000000");
		PORTCAPACITYMAP.put("EG2", "1000000");
		PORTCAPACITYMAP.put("EG4F", "1000000");
		PORTCAPACITYMAP.put("EX2", "10000000");
		PORTCAPACITYMAP.put("ML1A", "2000");

		PORTCAPACITYMAP.put("CXPB", "100000");
		PORTCAPACITYMAP.put("CXPH", "100000");

		PORTCAPACITYMAP.put("CXPH-21", "1000000");
		PORTCAPACITYMAP.put("CXPH-22", "1000000");
		PORTCAPACITYMAP.put("CXPI-1", "1000000");
		PORTCAPACITYMAP.put("CXPI-2", "1000000");
		PORTCAPACITYMAP.put("CXPI", "100000");
	}
	/*static {
		PORTCAPACITYMAP.put("12LDX", "10485760");
		PORTCAPACITYMAP.put("82EG16", "1048576");
		PORTCAPACITYMAP.put("82EX2", "10485760");
		PORTCAPACITYMAP.put("AUXQ", "102400");
		PORTCAPACITYMAP.put("EF8F", "102400");
		PORTCAPACITYMAP.put("EF8T", "102400");
		PORTCAPACITYMAP.put("EFG2", "1048576");
		PORTCAPACITYMAP.put("EG16", "1048576");
		PORTCAPACITYMAP.put("EG2", "1048576");
		PORTCAPACITYMAP.put("EG4F", "1048576");
		PORTCAPACITYMAP.put("EX2", "10485760");
		PORTCAPACITYMAP.put("ML1A", "2000");

		PORTCAPACITYMAP.put("CXPB", "102400");
		PORTCAPACITYMAP.put("CXPH", "102400");

		PORTCAPACITYMAP.put("CXPH-21", "1048576");
		PORTCAPACITYMAP.put("CXPH-22", "1048576");
		PORTCAPACITYMAP.put("CXPI-1", "1048576");
		PORTCAPACITYMAP.put("CXPI-2", "1048576");
		PORTCAPACITYMAP.put("CXPI", "102400");
	}*/

	/** The Constant BANDWIDTHALIAS_MAP. */
	public static final HashMap<String, String> BANDWIDTHALIAS_MAP = new HashMap<String, String>();

	static {
		BANDWIDTHALIAS_MAP.put("10000000", "10G");
		BANDWIDTHALIAS_MAP.put("1000000", "1G");

		BANDWIDTHALIAS_MAP.put("100000", "100M");
		BANDWIDTHALIAS_MAP.put("2000", "2M");

	}
	/*static {
	BANDWIDTHALIAS_MAP.put("10485760", "10G");
	BANDWIDTHALIAS_MAP.put("1048576", "1G");

	BANDWIDTHALIAS_MAP.put("102400", "100M");
	BANDWIDTHALIAS_MAP.put("2000", "2M");

	}*/

	/** The Constant CIR_NAME. */
	public static final String CIR_NAME = "Bandwidth";

	/** The Constant PIR_NAME. */
	public static final String PIR_NAME = "PIR";

	/** The Constant PBS_NAME. */
	public static final String PBS_NAME = "PBS";

	/** The Constant CBS_NAME. */
	public static final String CBS_NAME = "CBS";

	/** The Constant NE_STATUS_ACTIVE. */
	public static final String NE_STATUS_ACTIVE = "active";

	/** The Constant NE_STATUS_INACTIVE. */
	public static final String NE_STATUS_INACTIVE = "inactive";

	/** The Constant WORKING. */
	public static final String WORKING = "working";

	/** The Constant WORKING_RVS. */
	public static final String WORKING_RVS = "working_rvs";

	/** The Constant PRT. */
	public static final String PRT = "protection";

	/** The Constant PRT_RVS. */
	public static final String PRT_RVS = "protection_rvs";

	/** The Constant RECORD_FETCH_5. */
	public static final int RECORD_FETCH_5 = 5;

	/** The Constant DISCOVERY_IN_PROGRESS. */
	public static final String DISCOVERY_IN_PROGRESS = "PENDING";

	/** The Constant DISCOVERY_COMPLETE. */
	public static final String DISCOVERY_COMPLETE = "COMPLETE";

	/** The Constant DISCOVERY_FAIL. */
	public static final String DISCOVERY_FAIL = "FAIL";

	/** The Constant ORDERSTATUS_FAIL. */
	public static final String ORDERSTATUS_FAIL = "FAIL";

	/** The Constant ORDERSTATUS_SUCCESS. */
	public static final String ORDERSTATUS_SUCCESS = "SUCCESS";

	/** The Constant DISCOVERY_TYPE_FULL. */
	public static final String DISCOVERY_TYPE_FULL = "Full Discovery";

	/** The Constant DISCOVERY_TYPE_SERVICE. */
	public static final String DISCOVERY_TYPE_SERVICE = "Service Discovery";

	/** The Constant DISCOVERY_TYPE_ADHOC. */
	public static final String DISCOVERY_TYPE_ADHOC = "AdHoc Discovery";
	
	/** The Constant ALARM_RETRIVAL_TYPE_ADHOC. */
	public static final String ALARM_RETRIVAL_TYPE_ADHOC = "Alarm Retrival";

	/** The Constant ACTIVATION_TYPE_TUNNEL. */
	public static final String ACTIVATION_TYPE_TUNNEL = "tunnel";

	/** The Constant ACTIVATION_TYPE_SERVICE. */
	public static final String ACTIVATION_TYPE_SERVICE = "service";

	
	/** for RAD discovery **/
	public static final String DISCOVERY_RAD_FULL  = "Rad Full Discvoery";
	public static final String DISCOVERY_RAD_ADHOC = "Rad Adhoc Discovery"; 
	public static final String DISCOVERY_RAD_IN_PROGRESS = "Rad PENDING";
}
